home *** CD-ROM | disk | FTP | other *** search
- function moveToy(a)
- {
- a.mod != 0 ? a.fal++ : (a._x += spd);
- a.mod != 1 ? (a.fal = -20) : (a._rotation += 11, a._y += a.fal, a._x += spd);
- if(a._x > 650)
- {
- a.gd != 0 ? life-- : null;
- a.removeMovieClip();
- }
- a._y <= 400 ? null : a.removeMovieClip();
- a.onPress = function()
- {
- a.swapDepths(a.getDepth() + 100);
- a.mod = 1;
- a.gd != 0 ? (score += 5) : (score -= 10);
- };
- }
- mac.swapDepths(1000);
- toy = 0;
- spd = 5;
- score = 0;
- tim = 0;
- life = 5;
- max = 0;
- grants = 0;
- onEnterFrame = function()
- {
- score <= max ? null : (max = score);
- Math.floor(max / 200) <= grants ? null : (grants++, life++);
- spd = score / 100 + 5;
- tim--;
- if(tim < 1)
- {
- if(random(2) == 0)
- {
- goo.duplicateMovieClip("gg" + toy,100 + toy,{_x:ar._x,_y:ar._y,mod:0,gd:0});
- }
- else
- {
- bad.duplicateMovieClip("bb" + toy,100 + toy,{_x:ar._x,_y:ar._y,mod:0,gd:1});
- }
- toy >= 100 ? (toy = 0) : toy++;
- tim = Math.floor(100 / spd);
- }
- score >= 0 ? null : (score = 0);
- life >= 1 ? null : (nextFrame(), §§push(undefined), undefined);
- };
-